//
//  BJSettingsTableViewCell.m
//  DangXiao
//
//  Created by APPLE on 16/12/7.
//  Copyright © 2016年 APPLE. All rights reserved.
//

#import "BJSettingsTableViewCell.h"
#import "BJButton.h"


#define WIDTH BILIWIDTH(70)

#define HEIGHT BILIHEIGHT(70)

@implementation BJSettingsTableViewCell{
    BJButton *nightBtn;
    BJButton *setBtn;
    BJButton *aggrementBtn;
}

-(void)initUI{
    
    setBtn = [[BJButton alloc]init];
    setBtn.backgroundColor = [UIColor greenColor];
//    [setBtn addTarget:self action:@selector(didClickWeiXinBtn:) forControlEvents:(UIControlEventTouchUpInside)];
    setBtn.imageViews.image = [UIImage imageNamed:@"shezhi"];
    setBtn.titleLablees.text = @"我的设置";
    [self addSubview:setBtn];
    [setBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.mas_centerX);
        make.top.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(WIDTH, HEIGHT));
    }];
    
    UILabel *lineLabel1 = [Utils labelWithTitle:@"" titleFontSize:10 textColor:ClearColor backgroundColor:GrayLabel alignment:1];
    [self addSubview:lineLabel1];
    [lineLabel1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BILIHEIGHT(10));
        make.bottom.mas_equalTo(-BILIHEIGHT(10));
        make.width.mas_equalTo(1);
        make.right.equalTo(setBtn.mas_left).offset(-BILIWIDTH(25));
    }];
    
    
    UILabel *lineLabel2 = [Utils labelWithTitle:@"" titleFontSize:10 textColor:ClearColor backgroundColor:GrayLabel alignment:1];
    [self addSubview:lineLabel2];
    [lineLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BILIHEIGHT(10));
        make.bottom.mas_equalTo(-BILIHEIGHT(10));
        make.width.mas_equalTo(1);
        make.left.equalTo(setBtn.mas_right).offset(BILIWIDTH(25));
    }];
    
    aggrementBtn = [[BJButton alloc]init];
    //    [setBtn addTarget:self action:@selector(didClickWeiXinBtn:) forControlEvents:(UIControlEventTouchUpInside)];
    aggrementBtn.imageViews.image = [UIImage imageNamed:@"kaos"];
    aggrementBtn.titleLablees.text = @"意见反馈";
    [self addSubview:aggrementBtn];
    [aggrementBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(lineLabel2.mas_right).offset(BILIWIDTH(25));
        make.top.mas_equalTo(0);
        make.size.equalTo(setBtn);
    }];

    nightBtn = [[BJButton alloc]init];
    //    [setBtn addTarget:self action:@selector(didClickWeiXinBtn:) forControlEvents:(UIControlEventTouchUpInside)];
    nightBtn.imageViews.image = [UIImage imageNamed:@"fabu"];
    nightBtn.titleLablees.text = @"我的发布";
    [self addSubview:nightBtn];
    [nightBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(lineLabel1.mas_left).offset(-BILIWIDTH(25));
        make.top.mas_equalTo(0);
        make.size.equalTo(setBtn);
    }];
    setBtn.titleLablees.font = aggrementBtn.titleLablees.font = nightBtn.titleLablees.font = FontVlaue(13);

}
@end
